/*
 * 文件名称: Invocation.java Copyright 2011-2016 Ximalaya All right reserved.
 */
package top.zxybird.yun.rpc.api;

import java.lang.reflect.Method;

import lombok.*;
import lombok.experimental.Accessors;

@ToString(callSuper = true, includeFieldNames = true)
@AllArgsConstructor
@EqualsAndHashCode
public class Invocation {

  @Getter
  @Setter
  @Accessors(chain = true)
  private Object[] arguments;

  @Getter
  @Setter
  @Accessors(chain = true)
  private Method method;

  public Invocation(Method method, Object... arguments) {
    this.method = method;
    this.arguments = arguments;
  }
}
